'use strict';
const db = uniCloud.database();
exports.main = async (event, context) => {
    // event为传递的变量对象
	if(event.type =='get'){
		return await db.collection('category').get()
	}
    console.log('event : ', event);
	
	}